how to print elements of an array in c